package com.toutoushidao.ssm.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 用户数据
 * @author laodun
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserData {
    private Long id;
    private Long userId;
    private Long score;
    private Long balance;
    private Long coin;
    private Long lengthEndless;
    private Long lengthTime;

    public Long getBalance() {
        return balance;
    }

    public void setBalance(Long balance) {
        this.balance = balance;
    }

    public Long getCoin() {
        return coin;
    }

    public void setCoin(Long coin) {
        this.coin = coin;
    }

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getLengthEndless() {
        return lengthEndless;
    }

    public void setLengthEndless(Long lengthEndless) {
        this.lengthEndless = lengthEndless;
    }


    public Long getLengthTime() {
        return lengthTime;
    }

    public void setLengthTime(Long lengthTime) {
        this.lengthTime = lengthTime;
    }

    @Override
    public String toString() {
        return "UserData{" +
                "id=" + id +
                ", userId=" + userId +
                ", score=" + score +
                ", balance=" + balance +
                ", coin=" + coin +
                ", lengthEndless=" + lengthEndless +
                ", lengthTime=" + lengthTime +
                '}';
    }
}
